import * as API from './index'

export const getproductlist=(params)=>{
   return API.GET('/getproductlist',params)
}
export const getclasspro=(params)=>{
   return API.GET('/getclasspro',params)
}

export const gettypepro=(params)=>{
   return API.GET('/gettypepro',params)
}
export const getkindpro=(params)=>{
   return API.GET('/getkindpro',params)
}
export const getvideo=(params)=>{
   return API.GET('/getvideo',params)
}
export const getclass=(params)=>{
   return API.GET('/getclass',params)
}
export const getkind=(params)=>{
   return API.GET('/getkind',params)
}
export const gettype=(params)=>{
   return API.GET('/gettype',params)
}
export const getproinfo=(params)=>{
   return API.GET('/getproinfo',params)
}
export const gettjpro=(params)=>{
   return API.GET('/gettjpro',params)
}
//获取用户购物车
export const getcart=(params,headers)=>{
   return API.GET('/getcart',params,headers)
}
//修改购物车商品数量
export const updatecartpnum=(params)=>{
   return API.POST('/updatecartpnum',params)
}
//删除购物车商品
export const deletecart=(params)=>{
   return API.POST('/deletecart',params)
}
//删除多个购物车商品
export const deletecarts=(params)=>{
   return API.POST('/deletecarts',params)
}

export const login=(params)=>{
   return API.POST('/login',params)
}

//获取签到信息
export const getsign=(params)=>{
   return API.GET('/getsign',params)
}  
//签到
export const sign=(params,headers)=>{
   return API.POST('/sign',params,headers)
}
//获取用户收获地址
export const getaddress = (params) => {
   return API.GET('/getaddress', params)
}
//提交订单接口
export const postorder = (params, headers) => {
   return API.POST('/postorder', params, headers)
}
//查询单个地址信息
export const getaddressinfo = (params) => {
   return API.GET('/getaddressinfo', params)
}
//加入购物车 
export const addcart = (params, headers) => {
   return API.POST('/addcart', params, headers)
}
//添加收获地址
export const addaddress = (params) => {
   return API.POST('/addaddress ', params)
}
//修改收货地址
export const updateaddress = (params) => {
   return API.POST('/updateaddress', params)
}
//删除收货地址
export const deleteaddress = (params) => {
   return API.POST('/deleteaddress', params)
}
//修改订单状态
export const uporder = (params) => {
   return API.POST('/uporder', params)
}